home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 37
/
Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso
/
Aminet
/
dev
/
cross
/
Avr.lha
/
Atmel
/
Asm
/
src
/
buff.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-03-17
|
582b
|
19 lines
struct MemBuffer{
BYTE *Buffer;
ULONG Offset;
ULONG Used;
ULONG Buff_Size;
};
typedef struct MemBuffer MEMBUFF;
int BuffEOF(struct MemBuffer *Buf);
int BuffPutS(const char *s, struct MemBuffer *Buf);
BYTE *BuffGetS(char *s, int n, struct MemBuffer *Buf);
int BuffGetC(struct MemBuffer *Buf);
int BuffPutC(BYTE Ch, struct MemBuffer *Buf);
void BuffRewind(struct MemBuffer *Buf);
void KillBuffer(struct MemBuffer *Buf);
struct MemBuffer *OpenBuffer(void);
void BuffDump(char *Filename, struct MemBuffer *Buf);